import request from '@/utils/request'

// 查询科研项目列表
export function listProject(query) {
  return request({
    url: '/laboratory/project/list',
    method: 'post',
    data: query
  })
}

// 查询科研项目详细
export function getProject(id) {
  return request({
    url: '/laboratory/project/' + id,
    method: 'get'
  })
}

// 新增科研项目
export function addProject(data) {
  return request({
    url: '/laboratory/project/add',
    method: 'post',
    data: data
  })
}

// 修改科研项目
export function updateProject(data) {
  return request({
    url: '/laboratory/project',
    method: 'post',
    data: data
  })
}

// 删除科研项目
export function delProject(id) {
  return request({
    url: '/laboratory/project/' + id,
    method: 'post',
    data: {ids: id}
  })
}
